import React from "react";
import ModuleLayout from "./ModuleLayout";
import LoginPage from "./login/LoginPage";

const ApplicationLayout = (props) => {

    const pathname = window.location.pathname;
    console.log("ApplicationLayout pathname => ", pathname);

    return (
        <div style={{ width: "100%", height: "100%" }}>
            {
                "/" === pathname ? <LoginPage { ...props } /> : <ModuleLayout { ...props } />
            }
        </div>
    );
}

export default ApplicationLayout;
